#coding=utf-8

import numpy as np

def numpy_01():
    a = np.array([0, 1, 2, 3, 4])
    b = np.array((0, 1, 2, 3, 4))
    c = np.arange(5)
    d = np.linspace(0, 2*np.pi, 5)

    print(a) # >>>[0 1 2 3 4]
    print(b) # >>>[0 1 2 3 4]
    print(c) # >>>[0 1 2 3 4]
    print(d) # >>>[ 0.          1.57079633  3.14159265  4.71238898  6.28318531]
    print(a[3]) # >>>3

if __name__ == '__main__':
    numpy_01()